Amplitude and period of cosine and sine